import request from '@/utils/request'
export function getDepartments() {
  return request({
    url: '/company/department',
    method: 'get'
  })
}

export function delDepartments(id) {
  return request({
    url: '/company/department/' + id,
    method: 'DELETE'
  })
}

export function addDepartments(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}

export function getDepartmentsDetail(id) {
  return request({
    url: '/company/department' + id,
    method: 'get'
  })
}

